//
//  EOCEmployee.m
//  Test
//
//  Created by 杨德龙 on 2017/3/10.
//  Copyright © 2017年 HipalSports. All rights reserved.
//

#import "EOCEmployee.h"
#import "EOCEmployeeDeveloper.h"
#import "EOCEmployeeFinance.h" 
#import "EOCEmployeeDesigner.h"


@implementation EOCEmployee

+(EOCEmployee *)employeeWithType:(EOCEmployeeType )type
{
    switch (type)
    {
        case EOCEmployeeTypeDeveloper:
        {
            return [EOCEmployeeDeveloper new];
        }
            break;
        case EOCEmployeeTypeDesigner:
        {
            return [EOCEmployeeDesigner new];
        }
            break;
        case EOCEmployeeTypeFinance:
        {
            return [EOCEmployeeFinance new];
        }
        
    }
}

- (void)doADayWork
{
    
}

@end
